package com.b2b.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Hibernate实体对的基类
 *
 */
@MappedSuperclass
public abstract class EntityClass implements Serializable
{ // 实体基类
	private static final long serialVersionUID = 6027480539961452188L;
	
	@Column
	private long createUser = 0l;		// 创建人
	
	@Column
	private long createTime = 0l;		// 创建时间
	
	@Column
	private long updateUser = 0l;		// 更新人
	
	@Column
	private long updateTime = 0L;		// 最后更新时间
	
	@Column
	private int status = 0;				// 状态 0-正常、9-逻辑删除
	
	public long getCreateUser()
	{
		return createUser;
	}

	public void setCreateUser(long createUser)
	{
		this.createUser = createUser;
	}

	public long getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(long createTime)
	{
		this.createTime = createTime;
	}

	public long getUpdateUser()
	{
		return updateUser;
	}

	public void setUpdateUser(long updateUser)
	{
		this.updateUser = updateUser;
	}

	public long getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(long updateTime)
	{
		this.updateTime = updateTime;
	}

	public int getStatus()
	{
		return status;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}
	
}